package com.tencent.wxcloudrun.vo.request.wx;

import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Ryan Zhao
 *         <p>
 *         Copyright: Copyright (c) 2023
 *         </p>
 * @version 1.0
 * @date 2023-08-29 16:58
 * @description: 微信传运单请求入参
 */
@NoArgsConstructor
@Data
@ApiModel(value = "WxTraceWaybillRequest", description = "微信传运单请求入参")
public class WxTraceWaybillRequest {

    @ApiModelProperty("微信openId")
    private String openid;

    @ApiModelProperty("寄件人手机号")
    private String sender_phone;

    @ApiModelProperty("收件人手机号")
    private String receiver_phone;

    @ApiModelProperty("运力id")
    private String delivery_id;

    @ApiModelProperty("运单号")
    private String waybill_id;

    @ApiModelProperty("商品信息")
    private ReqGoodInfoDTO goods_info;

    @ApiModelProperty("交易单号")
    private String trans_id;

    @ApiModelProperty("商品卡片跳转路径")
    private String order_detail_path;

    @NoArgsConstructor
    @Data
    public static class ReqGoodInfoDTO {

        @ApiModelProperty("商品列表")
        private List<ReqGoodDetailDTO> detail_list;

    }

    @NoArgsConstructor
    @Data
    public static class ReqGoodDetailDTO {

        @ApiModelProperty("商品名称")
        private String goods_name;

        @ApiModelProperty("商品图片url")
        private String goods_img_url;

        @ApiModelProperty("商品详情描述")
        private String goods_desc;

    }

}
